home *** CD-ROM | disk | FTP | other *** search
/ Aminet 2 / Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso / Aminet / dev / c / ObjectiveGT1_0.lha / Include / Manx / OGT / ObjectiveGadTools_protos.h < prev    next >
C/C++ Source or Header  |  1992-10-21  |  9KB  |  132 lines

  1. #ifndef OGT_OBJECTIVEGADTOOLS_PROTOS_H
  2. #define OGT_OBJECTIVEGADTOOLS_PROTOS_H
  3. /*
  4. ** $Filename: OGT/ObjectiveGadTools_protos.h $
  5. ** $Release : 1.0                            $
  6. ** $Revision: 1.000                          $
  7. ** $Date    : 18/10/92                       $
  8. **
  9. **
  10. ** (C) Copyright 1991,1992 Davide Massarenti
  11. **              All Rights Reserved
  12. */
  13.  
  14. #ifndef OGT_OBJECTIVEGADTOOLS_H
  15. #include <OGT/ObjectiveGadTools.h>
  16. #endif
  17.  
  18. /**********************************************************************************/
  19. /*                                                                                */
  20. /*                                  General                                       */
  21. /*                                                                                */
  22. /**********************************************************************************/
  23. struct Window *OGT_OpenWindowTagList( struct MsgPort *port, struct TagItems *tags );
  24. struct Window *OGT_OpenWindowTags   ( struct MsgPort *port,                  ...  );
  25. void           OGT_CloseWindow      ( struct MsgPort *port, struct Window   *win  );
  26.  
  27. struct IntuiMessage *OGT_GetMsgForWindow         ( struct Window *win                                   );
  28. struct IntuiMessage *OGT_GetMsgForWindowWithClass( struct Window *win, LONG class, LONG qualifiers_mask );
  29.  
  30. APTR                 OGT_GetVisualInfoA( struct MsgPort *port, struct TagItem *tags );
  31. APTR                 OGT_GetVisualInfo ( struct MsgPort *port,                 ...  );
  32. void                 OGT_FreeVisualInfo( APTR vinfo                                 );
  33. BOOL                 OGT_RefreshWindow ( APTR vinfo                                 );
  34. struct Window       *OGT_GetWindowPtr  ( APTR vinfo                                 );
  35. struct IntuiMessage *OGT_GetMsg        ( APTR vinfo                                 );
  36. void                 OGT_ReplyMsg      ( struct IntuiMessage *msg                   );
  37.  
  38. BOOL OGT_BuildObjects( APTR vinfo, struct OGT_ObjectSettings *objectsarray, struct OGT_ObjectLink *linksarray, Object ***storage );
  39.  
  40. void OGT_FontMeanSize( struct TextFont *font, struct TextExtent *buffer );
  41.  
  42.  
  43. /**********************************************************************************/
  44. /*                                                                                */
  45. /*                             TAGs Handling                                      */
  46. /*                                                                                */
  47. /**********************************************************************************/
  48. ULONG           OGT_SizeTagList     (                          struct TagItem *list  );
  49. ULONG           OGT_TagPosInArray   ( Tag  tag ,               Tag            *array );
  50. void            OGT_SetTagData      ( Tag  tag , ULONG  data , struct TagItem *list  );
  51. ULONG           OGT_GetLastTagData  ( Tag  tag , ULONG  data , struct TagItem *list  );
  52. void            OGT_GetMultiTagData ( Tag *tags, ULONG *datas, struct TagItem *list  );
  53. void            OGT_FilterTagData   ( Tag  tag , ULONG  data , struct TagItem *list  );
  54. struct TagItem *OGT_FindLastTagItem ( Tag  tag ,               struct TagItem *list  );
  55. struct TagItem *OGT_TagItemInArray  ( Tag  tag ,               struct TagItem *array );
  56.  
  57. void            OGT_InsertATagItem  ( struct TagItem *array, Tag tag, ULONG  data     );
  58. void            OGT_InsertTagItemsA ( struct TagItem *array, struct TagItem *newitems );
  59. void            OGT_InsertTagItems  ( struct TagItem *array,                 ...      );
  60.  
  61. struct TagItem *OGT_FindFirstMatch  ( struct TagItem  *tagList, Tag            *tagMatch                                        );
  62. LONG            OGT_MapTags         ( struct TagItem  *taglist, struct TagItem *maplist   ,                   LONG  includemiss );
  63. ULONG           OGT_SignalTags      ( struct TagItem  *list   , struct TagItem *maskarray , BOOL  usedata                       );
  64. void            OGT_FilterRange     ( struct TagItem  *list   , ULONG           lowerbound, ULONG upperbound, LONG  includemiss );
  65. void            OGT_UpdateTagItemsA ( struct TagItem  *list   , struct TagItem *updates                                         );
  66. void            OGT_UpdateTagItems  ( struct TagItem  *list   ,                 ...                                             );
  67.  
  68. void            OGT_FreeTagItems    (                         struct TagItem      *list                );
  69. struct TagItem *OGT_AllocateTagItems( ULONG            size                                            );
  70. struct TagItem *OGT_CloneTagItems   (                         struct TagItem      *list                );
  71. struct TagItem *OGT_ReduceTagItems  (                         struct TagItem      *list                );
  72. struct TagItem *OGT_MergeTagItemsA  ( struct TagItem  *listA, struct TagItem      *listB               );
  73. struct TagItem *OGT_MergeTagItems   ( struct TagItem  *list ,                      ...                 );
  74. struct TagItem *OGT_TackOnTagItemsA ( struct TagItem **listA, struct TagItem      *listB               );
  75. struct TagItem *OGT_TackOnTagItems  ( struct TagItem **list ,                      ...                 );
  76. struct TagItem *OGT_CloneAndMap     ( struct TagItem  *list , struct TagItem      *map                 );
  77. struct TagItem *OGT_CloneAndFilter  ( struct TagItem  *list , Tag                 *array  , LONG logic );
  78. struct TagItem *OGT_CloneAndComplete( struct TagItem  *list , struct TagItemMulti *convert             );
  79.  
  80.  
  81. /**********************************************************************************/
  82. /*                                                                                */
  83. /*                             LISTs Handling                                     */
  84. /*                                                                                */
  85. /**********************************************************************************/
  86. struct MinNode *OGT_GetANode      ( struct MinList *list, LONG            which );
  87. BOOL            OGT_FindNodeInList( struct MinList *list, struct MinNode *node  );
  88. LONG            OGT_FindNodePos   ( struct MinList *list, struct MinNode *node  );
  89. ULONG           OGT_SizeList      ( struct MinList *list                        );
  90. void            OGT_MoveNodes     ( struct MinList *from, struct MinList *to    );
  91.  
  92.  
  93. /**********************************************************************************/
  94. /*                                                                                */
  95. /*                            Memory Handling                                     */
  96. /*                                                                                */
  97. /**********************************************************************************/
  98. void OGT_FreeMem ( APTR  block, ULONG size, struct OGT_PooledMemHeader *info );
  99. APTR OGT_AllocMem( ULONG size , ULONG attr, struct OGT_PooledMemHeader *info );
  100. void OGT_FreeVec ( APTR  block,             struct OGT_PooledMemHeader *info );
  101. APTR OGT_AllocVec( ULONG size , ULONG attr, struct OGT_PooledMemHeader *info );
  102. void OGT_InitMem ( ULONG size , ULONG attr, struct OGT_PooledMemHeader *info );
  103. void OGT_CleanMem(                          struct OGT_PooledMemHeader *info );
  104.  
  105.  
  106. /**********************************************************************************/
  107. /*                                                                                */
  108. /*                            Process Handling                                    */
  109. /*                                                                                */
  110. /**********************************************************************************/
  111. struct Process *OGT_Fork( SHORT (*code)(), void *data );
  112.  
  113. void OGT_DuplicateMsgPort( struct MsgPort *old, struct MsgPort *new );
  114.  
  115.  
  116. /**********************************************************************************/
  117. /*                                                                                */
  118. /*                               Miscellaneous                                    */
  119. /*                                                                                */
  120. /**********************************************************************************/
  121. WORD OGT_SignedScalerDiv   ( SHORT factor, USHORT numerator, USHORT denominator);
  122. BOOL OGT_IsPointInsideBox  ( SHORT x, SHORT y,    struct IBox *box             );
  123. APTR OGT_BeginFramedDrawing( struct RastPort *rp, struct IBox *box             );
  124. void OGT_EndFramedDrawing  ( struct RastPort *rp, APTR ret                     );
  125.  
  126. void OGT_DrawVectorImage( struct RastPort *rp, USHORT *pens, struct IBox *box, struct OGT_VectorElement *image );
  127.  
  128. BOOL OpenOGT ( void );
  129. void CloseOGT( void );
  130.  
  131. #endif /* OGT_OBJECTIVEGADTOOLS_PROTOS_H */
  132.